package com.bytz.modules.cms.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bytz.modules.cms.order.entity.OrderPayDetail;
import com.bytz.modules.cms.order.model.OrderBill;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDateTime;
import java.util.Map;

public interface IOrderBillService extends IService<OrderPayDetail> {
    /**
     * 分页查询
     */
    IPage<OrderBill> queryPage(Page<OrderBill> requestPage, OrderBill orderBill, Map<String, String[]> parameterMap) throws Exception;

    /**
     * 根据id查询
     */
    OrderBill queryById(String id) throws Exception;

    /**
     * 发送选中日期的账单给财务
     */
    void sendDailyBill(LocalDateTime date) throws IOException;

    /**
     * 导出列表
     */
    void exportXls(HttpServletResponse response, OrderBill orderBill, Map<String, String[]> parameterMap) throws Exception;
}
